package com.ericsson.epc.modules.trace.service.impl;

import com.ericsson.epc.modules.trace.entity.SignalFileHistory;
import com.ericsson.epc.modules.trace.mapper.SignalFileHistoryMapper;
import com.ericsson.epc.modules.trace.service.SignalFileHistoryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description: 信令追踪历史表Service接口实现
 * @author: wangjingshi
 * @create: 2021-03-17 15:22
 */
@Service
public class SignalFileHistoryServiceImpl implements SignalFileHistoryService {

    @Resource
    private SignalFileHistoryMapper signalFileHistoryMapper;

    @Override
    public List<SignalFileHistory> findList(SignalFileHistory signalFileHistory) {
        return signalFileHistoryMapper.findList(signalFileHistory);
    }

    @Override
    public void insert(SignalFileHistory signalFileHistory) {
        signalFileHistoryMapper.insert(signalFileHistory);
    }

    @Override
    public void update(SignalFileHistory signalFileHistory) {
        signalFileHistoryMapper.update(signalFileHistory);
    }

    @Override
    public void deleteExpiredData(String signalFileId, String dayFlag) {
        signalFileHistoryMapper.deleteExpiredData(signalFileId,dayFlag);
    }
}
